package com.theo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.theo.entity.TopicInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
public interface TopicInfoService extends IService<TopicInfo> {

    int saveTopicInfo(TopicInfo topicInfo);

    int deleteTopicInfo(Integer id);

    int updateTopicInfo(TopicInfo topicInfo);

    List<TopicInfo> queryAllTopicInfo();

    List<TopicInfo> queryAllTopicInfoByPage();

    List<TopicInfo> queryAllByTopicTypeId(String id);

    TopicInfo queryTopicInfoById(Integer id);
}
